#ifndef QT_BDM_REMUAUX_CARTIER_H
#define QT_BDM_REMUAUX_CARTIER_H

#include <QtGui/QMainWindow>
#include "ui_qt_bdm_remuaux_cartier.h"
#include "imagetab.h"
#include "image.h"
#include <QMessageBox>
#include <QFileDialog>
#include <QDir>
#include "dialoghistogram.h"
#include "dialogdisteuclpoint.h"
#include "dialogdisteuclintervale.h"
#include <QList>
#include "dialogchoixlot.h"
#include "comparaisondeDeuxImages.h"
#include "dialogaffichagedelot.h"
#include "dialogaffichagecategories.h"
#include <QInputDialog>
#include "indexation.h"
#include "BK_Tree.h"
#include "steganographie.h"
#include "dialogchoix2emeimage.h"
#include "serialization.h"
#include "dialogaide.h"

class qt_bdm_remuaux_cartier : public QMainWindow
{
    Q_OBJECT

public:
    qt_bdm_remuaux_cartier(QWidget *parent = 0);
    ~qt_bdm_remuaux_cartier();

    void calculHistogram(Image * image);
    QImage transformeGris(QImage image);
    void ouvrirImage(bool enGris);

    QList<Image> listeImages;
    BK_Tree arbreMotClef;
    BK_Tree arbreHistograme;



private:
    Ui::qt_bdm_remuaux_cartierClass ui;


private slots:
    void ouvrirImageCouleur();
    void ouvrirImageGris();
    void ouvrirSession();
    void ajoutImageATab(Image* img);
    void fermerTabImage(int index);
    void affichageHistogrames();
    void calculDEPoint();
    void calculDEIntervale();
    void traitementDEPoint(int valeur,int index);
    void traitementDEIntervale(int min, int max, int index);
    void calculDELot();
    void traitementDELot(bool * checkedIndex);
    void categories();
    void traitementCategories(bool * checkedIndex);
    void modifierInfos();
    void sauvegarderSession();
    void rechercheMotClef();
    void distLevenstein();
    void creationIndexChoixLot();
    void creationIndex(bool * checkedIndex);
    void rechercheMotIndex();
    void rechercheHistoIndex();
    void choixImageVersLsd44();
    void versLsd44(int indexePorteuse);
    void deLsd44();
    void choixImageVersLsd();
    void versLsd(int indexePorteuse);
    void deLsd();
    void affAide();



};

#endif // QT_BDM_REMUAUX_CARTIER_H
